package org.example.guide.persistence;


import org.example.guide.domain.Itinerary;
import org.example.guide.domain.Person;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("TripTeam")
public interface TripTeamFeign {
    @PostMapping("/Person/insertPerson")
    void send1(Person person);
    @PostMapping("/Itinerary/updateItinerary")
    void send2(Itinerary itinerary);

    @RequestMapping("/Itinerary/searchItinerary")
    Itinerary get(Itinerary itinerary);
}
